<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="be.ac.ua.ecampus.uacmat.entity.*" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Show</title>
	<link rel="stylesheet" type="text/css" href="style.css"/>
</head>

<body>
<header>
	<h1>Faculty</h1>
</header>

<% final Training training = (Training) request.getAttribute("training"); %>

<div id="body-wrapper">
	<h2><%= training.getDescription() %></h2>

	<ul>
		<% for (final Program program : training.getPrograms()) { %>
			<li>
		    	<a href="/uacmat/show?type=<%= program.getType() %>&id=<%= program.getId() %>"><%= program.getDescription() %></a>
			</li>
		<% } %>
	</ul>
</div>
</body>
</html>